Enter a type and click search.




Results for Magento\Braintree\Block\Paypal\Button

File: vendor/magento/module-braintree/etc/frontend/di.xml

<type name="Magento\Braintree\Block\Paypal\Button">
    <arguments>
        <argument name="localeResolver" xsi:type="object">
            Magento\Braintree\Model\LocaleResolver
        </argument>
        <argument name="data" xsi:type="array">
            <item name="template" xsi:type="string">
                Magento_Braintree::paypal/button.phtml
            </item>
            <item name="alias" xsi:type="string">
                braintree.paypal.mini-cart
            </item>
            <item name="button_id" xsi:type="string">
                braintree-paypal-mini-cart
            </item>
        </argument>
        <argument name="payment" xsi:type="object">
            BraintreePayPalFacade
        </argument>
    </arguments>
</type>

This is a type configuration.

This configuration is for the frontend area. This is the area that corresponds with the cart sub-application.

This configuration tells the Object Manager that when a user wants a Magento\Braintree\Block\Paypal\Button object that the following arguments should be used in the foo object's constructor.

File: vendor/magento/module-braintree/etc/frontend/di.xml

<type name="Magento\Braintree\Observer\AddPaypalShortcuts">
    <arguments>
        <argument name="buttonBlocks" xsi:type="array">
            <item name="mini_cart" xsi:type="string">
                Magento\Braintree\Block\Paypal\Button
            </item>
            <item name="shopping_cart" xsi:type="string">
                Magento\Braintree\Block\Paypal\ButtonShoppingCartVirtual
            </item>
        </argument>
    </arguments>
</type>

This is a type configuration.

This configuration is for the frontend area. This is the area that corresponds with the cart sub-application.

This configuration tells the Object Manager that when a user wants a Magento\Braintree\Observer\AddPaypalShortcuts object that the following arguments should be used in the foo object's constructor.

  • $buttonBlocks = [...items...];

File: vendor/magento/module-braintree/etc/frontend/di.xml

<virtualType name="Magento\Braintree\Block\Paypal\ButtonShoppingCartVirtual"
             type="Magento\Braintree\Block\Paypal\Button">
    <arguments>
        <argument name="data" xsi:type="array">
            <item name="template" xsi:type="string">
                Magento_Braintree::paypal/button_shopping_cart.phtml
            </item>
            <item name="alias" xsi:type="string">
                braintree.paypal.mini-cart
            </item>
            <item name="button_id" xsi:type="string">
                braintree-paypal-mini-cart
            </item>
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the frontend area. This is the area that corresponds with the cart sub-application.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Braintree\Block\Paypal\ButtonShoppingCartVirtual object that it should return a Magento\Braintree\Block\Paypal\Button object.

This configuration tells the Object Manager that when a user wants a Magento\Braintree\Block\Paypal\ButtonShoppingCartVirtual object that the following arguments should be used in the foo object's constructor.

  • $data = [...items...];